
#include "member_BTextFormat.h"

using namespace BWE;

#define member					(*(member_BTextFormat*)_ptr)
#define member_allocate()		_ptr = new member_BTextFormat(this)
#define member_release()		delete (member_BTextFormat*)_ptr

BTextFormat::BTextFormat()
{
	member_allocate();
}
BTextFormat::BTextFormat(const BString& name) : BObject(name)
{
	member_allocate();
}
BTextFormat::~BTextFormat()
{
	member_release();
}

BWidget* BTextFormat::host()
{
	return member.host;
}
const BWidget* BTextFormat::host() const
{
	return member.host;
}

const BFont* BTextFormat::font(int pos) const
{
	return 0;
}
const BColor* BTextFormat::color(int pos) const
{
	return 0;
}
const BColor* BTextFormat::ground(int pos) const
{
	return 0;
}

Align BTextFormat::lineAlign(int line) const
{
	return Align_None;
}
int BTextFormat::lineSpacing(int line) const
{
	return 0;
}
int BTextFormat::lineHeight(int line) const
{
	return 0;
}

void BTextFormat::attached(BWidget* host)
{

}
void BTextFormat::detached(BWidget* host)
{

}

void BTextFormat::dirty() const
{
	this->emit(Signal_Dirty);
}
